import A2 from "./A2";
import Bus from "./Bus";

const A1 = () => {
  return (
    <div>
      <Bus.Consumer>
        {({ theme }) => {
          return (
            <div style={{ color: theme }}>
              <p>123</p>
              我是A1
              <A2></A2>
            </div>
          );
        }}
      </Bus.Consumer>
    </div>
  );
};

export default A1;
